package com.koron.order.experiment.mapper;

import com.koron.order.experiment.bean.po.ExperimentItemPo;
import com.koron.order.experiment.bean.vo.ExperimentItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (ExperimentItem)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-08 17:33:32
 */
public interface ExperimentItemMapper {

    int insertOrUpdate(ExperimentItemPo experimentItem);

    int insertOrUpdateBatch(List<ExperimentItemPo> experimentItem);

    int insert(ExperimentItemPo experimentItem);

    int insertBatch(@Param("list") List<ExperimentItemPo> experimentItems);

    int update(ExperimentItemPo experimentItem);

    int deleteById(String id);

    ExperimentItemPo queryById(String id);

    List<ExperimentItemPo> queryList(ExperimentItemPo experimentItem);

    int deleteByBusinessId(@Param("experimentId") String experimentId, @Param("experimentEquipId") String experimentEquipId, @Param("equipmentId") String equipmentId);

    List<ExperimentItemVo> queryByEquipmentId(@Param("experimentId") String experimentId, @Param("experimentEquipId") String experimentEquipId);
}